Integrand size = 21, antiderivative size = 67 \[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\frac {2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d \sqrt {b \cos (c+d x)}}+\frac {2 b \sin (c+d x)}{3 d (b \cos (c+d x))^{3/2}} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {16, 2716, 2721, 2720} \[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\frac {2 b \sin (c+d x)}{3 d (b \cos (c+d x))^{3/2}}+\frac {2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Rule 16
Rule 2716
Rule 2720
Rule 2721
Rubi steps \begin{align*} \text {integral}& = b^2 \int \frac {1}{(b \cos (c+d x))^{5/2}} \, dx \\ & = \frac {2 b \sin (c+d x)}{3 d (b \cos (c+d x))^{3/2}}+\frac {1}{3} \int \frac {1}{\sqrt {b \cos (c+d x)}} \, dx \\ & = \frac {2 b \sin (c+d x)}{3 d (b \cos (c+d x))^{3/2}}+\frac {\sqrt {\cos (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 \sqrt {b \cos (c+d x)}} \\ & = \frac {2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d \sqrt {b \cos (c+d x)}}+\frac {2 b \sin (c+d x)}{3 d (b \cos (c+d x))^{3/2}} \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.72 \[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\frac {2 \left (\sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\tan (c+d x)\right )}{3 d \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(237\) vs. \(2(83)=166\).
Time = 1.79 (sec) , antiderivative size = 238, normalized size of antiderivative = 3.55
method | result | size |
default | \(-\frac {2 \left (-2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(238\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.54 \[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\frac {-i \, \sqrt {2} \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, \sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, b d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
\[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\int \frac {\sec ^{2}{\left (c + d x \right )}}{\sqrt {b \cos {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\int { \frac {\sec \left (d x + c\right )^{2}}{\sqrt {b \cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\int { \frac {\sec \left (d x + c\right )^{2}}{\sqrt {b \cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^2(c+d x)}{\sqrt {b \cos (c+d x)}} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^2\,\sqrt {b\,\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]